<table class="site_syspermissions">
</table>
<script>
    $(function(){
        $(".site_syspermissions").treegrid({
            url:'../site-permissions/loadList.action',
            method:'get',
            fitColumns:true,
            idField:'id',
            treeField:'menuname',
            columns:[[
                {field:'menuname',title:'权限名称',width:100},
                {field:'permission',title:'权限名称',width:100},
            ]],
            toolbar: [{
                iconCls: 'icon-add',
                handler: function(){
                    //权限添加

                }
            },{
                iconCls: 'icon-edit',
                handler: function(){
                    //权限修改

                }
            },{
                iconCls: 'icon-remove',
                handler: function(){
                    //权限删除

                }
            }],
            fit:true,
            border:false,
            doSize:true
        });
    });
</script>